package com.zhou.system.management.conf;

import com.zhou.common.lib.exception.BaseExceptionHandler;
import com.zhou.common.lib.properties.BaseProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author xianfeng
 * @date 2023/5/26 22:15
 */
@Configuration
@EnableConfigurationProperties(BaseProperties.class)
public class SystemConfig {

    @Bean
    public BaseExceptionHandler baseExceptionHandler(BaseProperties baseProperties) {
        return new BaseExceptionHandler(baseProperties);
    }
}
